<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
    <title>Document</title>
</head>
<body>
 
    <div id="d">
           <button id="b">取消</button>
           <img src="/img/1.jpg" id="i">
    </div>
    <script>
               $(function()
               {
                   $("#b").bind("click",function()
                   {
                       $("#i").hide(1000,function()
                       {
                             // alert("sss")
                       })
                   })
               })
    </script>

</body>
</html>